package org.dromara.xyyw.service;

import org.dromara.xyyw.domain.XyywShopProductCollect;
import org.dromara.xyyw.domain.bo.XyywShopProductCollectBo;
import org.dromara.xyyw.domain.query.XyywShopProductCollectQuery;
import org.dromara.xyyw.domain.vo.XyywShopProductCollectVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 商铺商品收藏Service接口
 *
 * @author yf
 * @date 2024-05-29
 */
public interface IXyywShopProductCollectService extends IService<XyywShopProductCollect> {

    /**
     * 查询商铺商品收藏
     *
     * @param shopProductCollectId 主键
     * @return XyywShopProductCollectVo
     */
    XyywShopProductCollectVo queryById(Long shopProductCollectId);

    /**
     * 查询商铺商品收藏列表
     *
     * @param query 查询对象
     * @return XyywShopProductCollectVo
     */
    TableDataInfo<XyywShopProductCollectVo> queryPageList(XyywShopProductCollectQuery query);

    /**
     * 查询商铺商品收藏列表
     *
     * @param query 查询对象
     * @return XyywShopProductCollectVo
     */
    List<XyywShopProductCollectVo> queryList(XyywShopProductCollectQuery query);

    /**
     * 新增商铺商品收藏
     *
     * @param bo 商铺商品收藏新增业务对象
     * @return Boolean
     */
    Boolean insertByBo(XyywShopProductCollectBo bo);

    /**
     * 修改商铺商品收藏
     *
     * @param bo 商铺商品收藏编辑业务对象
     * @return Boolean
     */
    Boolean updateByBo(XyywShopProductCollectBo bo);

    /**
     * 校验并批量删除商铺商品收藏信息
     *
     * @param ids 主键集合
     * @return Boolean
     */
    Boolean deleteWithValidByIds(Collection<Long> ids);
}
